package com.woniuxy.car.commodity.service.starter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan(basePackages = {
        "com.woniuxy.car.commodity.service.core.mapper"
})
@EnableScheduling//启用任务调度
@EnableCaching//启用声明式缓存
//@EnableDiscoveryClient//启用服务发现
@SpringBootApplication(scanBasePackages = {
    "com.woniuxy.car.commodity.service.starter",
    "com.woniuxy.car.commodity.service.core"
})
public class CommodityStarterApplication {

    public static void main(String[] args) {
        SpringApplication.run(CommodityStarterApplication.class, args);
    }

}